package cn.wolfcode.ssm.service;

import cn.wolfcode.ssm.domain.Department;
import cn.wolfcode.ssm.qo.PageResult;
import cn.wolfcode.ssm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {

    void delete(Long id);

    void save(Department department);

    Department getOne(Long id);

    List<Department> getAll();

    void update(Department department);

    //使用分页插件提供的PageInfo类取代之前的pageResult类
    PageInfo<Department> selctForPageResult(QueryObject qo);
}
